<?php

class Application_Model_service_CartService implements Application_Model_serviceInf_CartServiceInf {
	protected $_name = "tb_sanpham";
	protected static $_instance = null;
	
	protected function __construct() {
	
	}
	public static function getInstance() {
		if (self::$_instance == null) {
			self::$_instance = new self ();
		}
		return self::$_instance;
	}
	public function getAllSanPham() {
	$cartDAOInf = new Application_Model_dataDAO_CartDAO();
		$result = $cartDAOInf->getAllSanPham ();
		return $result;
	}
	
	/**
	 * @param unknown_type $id
	 */
	public function getSanPham($id) {
	$cartDAOInf = new Application_Model_dataDAO_CartDAO();
		$result = $cartDAOInf->getSanPham ( $id );
		return $result;
	}
}

?>